<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/28 0028
 * Time: 16:29
 */

namespace app\admin\model;
use think\Model;

class Lab extends Model
{
    public function teacher(){
       return $this->belongsTo('Teacher','teacher_id');
    }
    protected $autoWriteTimestamp = 'datetime';
    

}